<?php
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
// DLMan by Shedd Technologies International		  				//
// http://www.dlman.com | info@dlman.com							//
// Copyright 2003 by STI, All rights reserved.						//
// ---------------------------------------------------------------- //
// Usage of this software is governed by the terms of GPL. 	    	//
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//

require("cvar.php");
if($stage=="2"){
	/*
	Gather database information for the db.php file.
	*/
print sheaderi();
?>
<P align=center><FONT face=Verdana size=4>DLMan&nbsp;<?php print $ver; ?></FONT><br>
<FONT face=Verdana>Installation &amp; Setup</FONT></P>
<P>
<HR width="90%" color=black SIZE=1>
<form action="setup_3.php" method="post">
<FONT face=Verdana>
In the main directory of your DLMan installation, you will find a file named <b>config.php.new</b>.  Rename this file to <b>config.php</b>.  You need to edit this file now, following these instructions:</FONT></td>
<ul>
<li>
Towards the top of config.php you should find a series of lines that appear like the following:<br>
$mysql['user']	= "root";//database username<br>
$mysql['pass']	= "";//database password<br>
$mysql['host']	= "localhost";//database hostname<br>
$mysql['db']	= "dlman";//database name<br>
$mysql['pre']	= "";//DLMan table prefix<br>
$mysql['fpre']	= "";//forum table prefix<br>
$sspath			= '/path/to/temporary/directory/';//path to temp directory (directory must be CHMOD 777)<br>
</li>
<li>Edit these lines to reflect the settings for your server.  You can use any plain text editor to edit this file.  Do not use word processing software to make these changes (i.e. Microsoft Word).</li>
<li>The values that you need to enter are as follows:
	<ol type="1">
		<li>$mysql['user'] - Enter the username for your database.</li>
		<li>$mysql['pass'] - Enter the password for your database.</li>
		<li>$mysql['host'] - Enter the hostname for your database.</li>
		<li>$mysql['db'] - Enter the name of the database that you are installing DLMan into.  If you intend to integrate DLMan with community software, this database needs to be the same as the database containing your that software.</li>
		<li>$mysql['pre'] - Enter the prefix for the DLMan tables.  If the database is empty you may leave this field blank.  This does not affect community integration.</li>
		<li>$mysql['fpre'] - If you are integrating DLMan with a community, please enter the prefix for the database tables of the community software.  This field may be blank.</li>
		<li>$sspath - Enter the <b>full, complete</b> path to your temporary directory.  The DLMan archive included a sample directory.  If you choose to use this &amp; are running this software on Linux or Unix, please CHMOD the temporary directory to 777.</li>
	</ol>
</li>
<li>Are you integrating DLMan with a community? Check the correct option: <input type="radio" name="comsetup" value="yes">Yes&nbsp;&nbsp;<input type="radio" name="comsetup" value="no">No</li>
</ul>
<HR width="90%" color=black SIZE=1>
<center><input type="submit" value="Continue"></center>
<input type="hidden" name="stage" value="2A">
</form>
<?php
	print footer();
}//end stage 2
?>
